import request from '@/utils/request'

export function openLogon() {
  return request({
    url: '/feature/permissionCode/open',
    method: 'post'
  })
}

export function closeLogon() {
  return request({
    url: '/feature/permissionCode/close',
    method: 'post'
  })
}

export function getPermission(query) {
  return request({
    url: '/feature/permissionCode',
    method: 'get',
    params: query
  })
}
